
_main:

;UART.c,12 :: 		void main() {
;UART.c,13 :: 		PORTB=0x00;
	CLRF        PORTB+0 
;UART.c,14 :: 		TRISB=0x00;
	CLRF        TRISB+0 
;UART.c,17 :: 		UART1_Init(9600);               // Initialize UART module at 9600 bps
	BSF         BAUDCON+0, 3, 0
	CLRF        SPBRGH+0 
	MOVLW       103
	MOVWF       SPBRG+0 
	BSF         TXSTA+0, 2, 0
	CALL        _UART1_Init+0, 0
;UART.c,18 :: 		Delay_ms(100);                  // Wait for UART module to stabilize
	MOVLW       130
	MOVWF       R12, 0
	MOVLW       221
	MOVWF       R13, 0
L_main0:
	DECFSZ      R13, 1, 1
	BRA         L_main0
	DECFSZ      R12, 1, 1
	BRA         L_main0
	NOP
	NOP
;UART.c,20 :: 		lv=1;
	BSF         PORTB+0, 0 
;UART.c,26 :: 		Delay_ms(1000);
	MOVLW       6
	MOVWF       R11, 0
	MOVLW       19
	MOVWF       R12, 0
	MOVLW       173
	MOVWF       R13, 0
L_main1:
	DECFSZ      R13, 1, 1
	BRA         L_main1
	DECFSZ      R12, 1, 1
	BRA         L_main1
	DECFSZ      R11, 1, 1
	BRA         L_main1
	NOP
	NOP
;UART.c,27 :: 		lv=0;
	BCF         PORTB+0, 0 
;UART.c,29 :: 		while (1) {                     // Endless loop
L_main2:
;UART.c,30 :: 		lj=1;
	BSF         PORTB+0, 1 
;UART.c,33 :: 		delay_ms(1000);
	MOVLW       6
	MOVWF       R11, 0
	MOVLW       19
	MOVWF       R12, 0
	MOVLW       173
	MOVWF       R13, 0
L_main4:
	DECFSZ      R13, 1, 1
	BRA         L_main4
	DECFSZ      R12, 1, 1
	BRA         L_main4
	DECFSZ      R11, 1, 1
	BRA         L_main4
	NOP
	NOP
;UART.c,34 :: 		lj=0;
	BCF         PORTB+0, 1 
;UART.c,36 :: 		lbe=1;
	BSF         PORTB+0, 2 
;UART.c,37 :: 		for(i=0;i<100;i++){
	CLRF        _i+0 
L_main5:
	MOVLW       100
	SUBWF       _i+0, 0 
	BTFSC       STATUS+0, 0 
	GOTO        L_main6
;UART.c,38 :: 		lbc=1;
	BSF         PORTB+0, 3 
;UART.c,39 :: 		chiffre[1]=(i%10)+48;
	MOVLW       10
	MOVWF       R4 
	MOVF        _i+0, 0 
	MOVWF       R0 
	CALL        _Div_8x8_U+0, 0
	MOVF        R8, 0 
	MOVWF       R0 
	MOVLW       48
	ADDWF       R0, 0 
	MOVWF       _chiffre+1 
;UART.c,40 :: 		chiffre[0]=((int)(i/10))+48;
	MOVLW       10
	MOVWF       R4 
	MOVF        _i+0, 0 
	MOVWF       R0 
	CALL        _Div_8x8_U+0, 0
	MOVLW       0
	MOVWF       R1 
	MOVLW       48
	ADDWF       R0, 1 
	MOVF        R0, 0 
	MOVWF       _chiffre+0 
;UART.c,43 :: 		UART1_Write(chiffre[0]);
	MOVF        R0, 0 
	MOVWF       FARG_UART1_Write_data_+0 
	CALL        _UART1_Write+0, 0
;UART.c,45 :: 		UART1_Write(chiffre[1]);
	MOVF        _chiffre+1, 0 
	MOVWF       FARG_UART1_Write_data_+0 
	CALL        _UART1_Write+0, 0
;UART.c,46 :: 		UART1_Write(' ');
	MOVLW       32
	MOVWF       FARG_UART1_Write_data_+0 
	CALL        _UART1_Write+0, 0
;UART.c,47 :: 		lbc=0;
	BCF         PORTB+0, 3 
;UART.c,48 :: 		lr=1;
	BSF         PORTB+0, 4 
;UART.c,49 :: 		Delay_ms(1000);
	MOVLW       6
	MOVWF       R11, 0
	MOVLW       19
	MOVWF       R12, 0
	MOVLW       173
	MOVWF       R13, 0
L_main8:
	DECFSZ      R13, 1, 1
	BRA         L_main8
	DECFSZ      R12, 1, 1
	BRA         L_main8
	DECFSZ      R11, 1, 1
	BRA         L_main8
	NOP
	NOP
;UART.c,50 :: 		lr=0;
	BCF         PORTB+0, 4 
;UART.c,37 :: 		for(i=0;i<100;i++){
	INCF        _i+0, 1 
;UART.c,52 :: 		}
	GOTO        L_main5
L_main6:
;UART.c,53 :: 		lbe=0;
	BCF         PORTB+0, 2 
;UART.c,54 :: 		}
	GOTO        L_main2
;UART.c,55 :: 		}
L_end_main:
	GOTO        $+0
; end of _main
